package org.laobai.permission.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import org.laobai.permission.metas.SexEnum;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiusan
 * @since 2021-11-17
 */
@TableName("t_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * hrID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    @TableField("head_img")
    private String headImg;

    @TableField("sex")
    private SexEnum sex;

    /**
     * 手机号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 住宅电话
     */
    @TableField("telephone")
    private String telephone;

    /**
     * 联系地址
     */
    @TableField("address")
    private String address;

    /**
     * 是否可用：1：启用，0：停用
     */
    @TableField("enabled")
    private Boolean enabled;

    /**
     * 用户名
     */
    @TableField("username")
    private String username;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    @TableField("remark")
    private String remark;

    /**
     * 省
     */
    @TableField("province")
    private Integer province;

    /**
     * 城市
     */
    @TableField("city")
    private Integer city;

    /**
     * 区县
     */
    @TableField("district")
    private Integer district;

    @TableField("userface")
    private String userface;

    @TableField(exist = false)
    private String location;

    @TableField(exist = false)
    private List<Integer> rids;

    @TableField(exist = false)
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<Integer> getRids() {
        return rids;
    }

    public void setRids(List<Integer> rids) {
        this.rids = rids;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }
    public SexEnum getSex() {
        return sex;
    }

    public void setSex(SexEnum sex) {
        this.sex = sex;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }
    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }
    public Integer getDistrict() {
        return district;
    }

    public void setDistrict(Integer district) {
        this.district = district;
    }
    public String getUserface() {
        return userface;
    }

    public void setUserface(String userface) {
        this.userface = userface;
    }

    @Override
    public String toString() {
        return "User{" +
            "id=" + id +
            ", name=" + name +
            ", headImg=" + headImg +
            ", sex=" + sex +
            ", phone=" + phone +
            ", telephone=" + telephone +
            ", address=" + address +
            ", enabled=" + enabled +
            ", username=" + username +
            ", password=" + password +
            ", remark=" + remark +
            ", province=" + province +
            ", city=" + city +
            ", district=" + district +
            ", userface=" + userface +
        "}";
    }
}
